/**
 * This code is released under lgpl v3 license.
 * All rights reserved.
*/

package javascript.util;

import com.google.gwt.core.client.JavaScriptObject;

/**
 * javascript Date overlay type
 * @author yuan yunchang    dukerr@gmail.com
 */
public class Date extends JavaScriptObject{

    protected Date() {
    }
    /**
     *
     * @return  day in month (1-31)
     */
    public native final int getDate()/*-{
    return this.getDate()
    }-*/;
    /**
     *
     * @return  day in week (0-6)
     */
    public native final int getDay()/*-{
    return this.getDay()
    }-*/;
    /**
     *
     * @return  (0-11)
     */
    public native final int getMonth()/*-{
    return this.getMonth()
    }-*/;
    public native final int getFullYear()/*-{
    return this.getFullYear()
    }-*/;
    public native final int  getYear()/*-{
    return this.getYear()
    }-*/;
}
